//
//  TestViewController.swift
//  MicroBlog
//
//  Created by Apple on 16/9/19.
//  Copyright © 2016年 Apple. All rights reserved.
//

import UIKit

class TestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.brown
        addNaviRightButton()
    }
    
    private func addNaviRightButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem.init(title: "push", imageName: nil, target: self, action: #selector(pushClick))
    }
    
    //点击事件
    func pushClick() {
        let vc = TestViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}
